package com.jxtc.enterprise.merchant.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.List;

@Schema(description = "商铺端店铺每天的营收情况")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class StoreDailyDataVO {

    @Schema(description = "日期，格式：yyyy-MM-dd", example = "2024-07-23")
    private String date;

    @Schema(description = "当天营收金额，单位为分，页面展示时需要除以 100 转换成元（保留两位小数）", example = "24000")
    private Integer todayMoney;

    @Schema(description = "当天的有效餐品数", example = "12")
    private Integer todayFoods;

    @Schema(description = "当天的售后餐品数", example = "0")
    private Integer todayAfterSaleFoods;

    @Schema(description = "当天的售后餐品数", example = "0")
    private List<OrderDetailByMeal> orderDetailByMeal;

    /**
     * 店铺在各个用餐时段的订单详情，比如各个时段的订单份数，后期根据需要还可以展示各个时段的营业额，各个的用餐时段的 售后订单个数
     */
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class OrderDetailByMeal {

        /**
         * 某个用餐时段的名称，比如 lunch午餐，dinner晚餐
         */
        private String mealType;

        /**
         * 某个用餐时段的总订单份数
         */
        private int orderCount;
    }
}
